package sis.studentinfo;

import java.util.AbstractMap.SimpleEntry;
import java.util.Date;

/**
 *
 * @author Alex
 */
public class SummerCourseSession extends Session{

    @Override
    int getSessionLength() {
        return 8; // confirm summer session length!
    }
    
    private SummerCourseSession(
         String department, String number, Date startDate) {
           super(department, number, startDate);
   }
    
     public static SummerCourseSession create(
         String department,
         String number,
         Date startDate) {          
       ValidateUtil.checkNullEmpty( new SimpleEntry("department",department),
                                    new  SimpleEntry("number",number),
                                    new  SimpleEntry("startDate",startDate));
      return new SummerCourseSession(department, number, startDate);
   }   
}
